<?php
/**
 * Created by PhpStorm.
 * User: linux
 * Date: 11/01/2018
 * Time: 10:23 AM
 */

namespace Bridge;


class Circle extends Shape
{
    private $radius;
    private $x;
    private $y;

    /**
     * Circle constructor.
     * @param DrawAPI $drawApi
     * @param int $radius
     * @param int $x
     * @param int $y
     */
    public function __construct(DrawAPI $drawApi, int $radius, int $x, int $y)
    {
        parent::__construct($drawApi);
        $this->radius = $radius;
        $this->x = $x;
        $this->y = $y;
    }


    function draw()
    {
        $this->drawApi->drawCircle($this->radius, $this->x, $this->y);
    }


}